<?php

/**
 * Description of o2orecommend
 *
 * @author libaoling
 * @time 2014-12-18
 */
class O2orecommendModel extends BaseModel
{
    var $table  = 'o2o_recommend';
    var $prikey = 'id';
    var $_name  = 'o2orecommend';

    var $_relation = array(
        // 一个推荐只能属于一个店铺
        'belongs_to_storeo2o' => array(
            'model'         => 'storeo2o',
            'type'          => BELONGS_TO,
            'foreign_key'   => 'store_id',
            'reverse' => 'has_o2orecommends',
        ),
    );

}
